package cn.hanfeng.taskservice.service.task;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

/**
 * @author hanfeng 2020/8/26 10:14
 * @version 0.0.1
 */
@Service
public class PrintExceptionTaskService {
    private static final Logger LOGGER = LoggerFactory.getLogger(PrintExceptionTaskService.class);
    public void sout() {
        LOGGER.error("动态定时任务调用, 抛出异常");
        throw new RuntimeException();
    }
}
